package Datos;
import Datos.Conexion;
import Entidades.Datos;
import Interfaces.IDatos;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

public class Conexion {
    private Connection conection = null;
    public Connection getConection() {
       if (conection == null) {
           try {
               Driver driver = new com.mysql.jdbc.Driver();
               DriverManager.registerDriver(driver);
               conection = DriverManager.getConnection("jdbc:mysql://localhost:3306/bedelia_utu", "root", "root");
    
           } catch (SQLException ex) {
               Logger.getLogger(Conexion.class.getName()).log(Level.SEVERE, null, ex);
}
       }
       return conection;
   }
}
